import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);//vue的插件机制

import user from './modules/user.js'
import device from './modules/device.js'
import irrigation from './modules/irrigation.js'

//Vuex.Store 构造器选项
export default new Vuex.Store({
	strict: true,
	modules:{
		user,
		device,
		irrigation,
	}
})